<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>System Administrator's Control Panel</title>
<#include "/view/head.html"/>
<style type="text/css">
*{margin:0;padding:0}
html{height:100%;overflow:hidden;}
body{height:100%;}
#logout{color:#FFF;padding-left:5px; background:url(${base}/res/tickets/img/admin/logout.jpg) no-repeat;}
#welcome{color:#FFF;padding:0 10px 0 5px; background:url(${base}/res/tickets/img/admin/msg.jpg) no-repeat 3px;}
#view_index{color:#FFF;}

.menu{padding-left:1em;font-size:12px;font-weight:700;float:left;margin:4px 4px 0 0;list-style:none;}
.menu li{float:left;width:105px;}
.menu li.sep{float:left;height:35px;width:10px;background:url(${base}/res/tickets/img/admin/sep.jpg) left 3px no-repeat;}
.menu li a{display:block;text-align:center;height:35px;line-height:35px;padding:0 14px;color:#000;outline:none;hide-focus:expression(this.hideFocus=true);}
.menu li.current{background:url(${base}/res/tickets/img/admin/nav_current.jpg) left top no-repeat;}
.menu li.current a{color:#fff;}

.undis{display:none;}
.dis{display:block;}
</style>

<script type="text/javascript">
function HoverLi(m){
	$('.current').attr('class', '');
	$('#tb_'+m).attr('class', 'current');
}
function changeSite(siteId) {
	
}
</script>
</head>

<body>
<div id="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="223">
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><img src="${base}/res/tickets/img/admin/logo.jpg"></td>
      </tr>
      <tr>
        <td height="33" align="center" background="${base}/res/tickets/img/admin/time_bg.jpg">
		<img src="${base}/res/tickets/img/admin/ico3.jpg">&nbsp;现在时间：
       <script language="javascript">
		var day="";
		var month="";
		var ampm="";
		var ampmhour="";
		var myweekday="";
		var year="";
		mydate=new Date();
		myweekday=mydate.getDay();
		mymonth=mydate.getMonth()+1;
		myday= mydate.getDate();
		year= mydate.getFullYear();
		if(myweekday == 0)
		weekday=" 星期日 ";
		else if(myweekday == 1)
		weekday=" 星期一 ";
		else if(myweekday == 2)
		weekday=" 星期二 ";
		else if(myweekday == 3)
		weekday=" 星期三 ";
		else if(myweekday == 4)
		weekday=" 星期四 ";
		else if(myweekday == 5)
		weekday=" 星期五 ";
		else if(myweekday == 6)
		weekday=" 星期六 ";
		document.write(year+"年"+mymonth+"月"+myday+"日 "+weekday);
	   </script>
       </td>
      </tr>
    </table></td>
    <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="15" height="54"><img src="${base}/res/tickets/img/admin/top_bg.jpg"></td>
        <td background="${base}/res/tickets/img/admin/top_bg.jpg">
        <table width="98%" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="260" height="30" align="right" >
			<img src="${base}/res/tickets/img/admin/ico1.gif"><span id="welcome">欢迎，${user.realname}</span>
			<img src="${base}/res/tickets/img/admin/ico2.jpg"><a href="logout" target="_top" id="logout" onclick="return confirm('<@s.m "global.confirm.logout"/>');"><@s.m "global.admin.logout"/></a></td>
          	<td width="30">&nbsp;</td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td><img src="${base}/res/tickets/img/admin/top_07.jpg"></td>
        <td background="${base}/res/tickets/img/admin/nav_bg.jpg">
		   <ul class="menu">
			<li class="current" id="tb_0" onclick="HoverLi(0);"><a href="admin_main" target="mainFrame">首页</a></li>
			<#if user.supplier??>
			<li class="sep"></li><li id="tb_11" onclick="HoverLi(11);"><a href="general_main" target="mainFrame">常用操作</a></li>
			<li class="sep"></li><li id="tb_12" onclick="HoverLi(12);"><a href="product_main" target="mainFrame">产品管理</a></li>
			<li class="sep"></li><li id="tb_13" onclick="HoverLi(13);"><a href="finance_main" target="mainFrame">供应商财务管理</a></li>
			<li class="sep"></li><li id="tb_14" onclick="HoverLi(14);"><a href="sorder_main" target="mainFrame">供应商订单管理</a></li>
			</#if>
			<#if user.partner??>
			<li class="sep"></li><li id="tb_22" onclick="HoverLi(22);"><a href="goods_main" target="mainFrame">产品订购</a></li>
			<li class="sep"></li><li id="tb_23" onclick="HoverLi(23);"><a href="order_main" target="mainFrame">分销商订单管理</a></li>
			<li class="sep"></li><li id="tb_24" onclick="HoverLi(24);"><a href="agent_main" target="mainFrame">代理商管理</a></li>
			<li class="sep"></li><li id="tb_25" onclick="HoverLi(25);"><a href="finance_main" target="mainFrame">分销商财务管理</a></li>
			</#if>
			<#if user.admin??>
			<li class="sep"></li><li id="tb_22" onclick="HoverLi(22);"><a href="user_main" target="mainFrame">用户管理</a></li>
			<li class="sep"></li><li id="tb_23" onclick="HoverLi(23);"><a href="element_main" target="mainFrame">类型管理</a></li>
			<li class="sep"></li><li id="tb_24" onclick="HoverLi(24);"><a href="config_main" target="mainFrame">系统功能</a></li>
			</#if>
			</ul>
		</td>
      </tr>
    </table></td>
  </tr>
</table>
</div>
</body>
</html>